using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PauseManager : MonoBehaviour
{
    [SerializeField] HowToPlay howToPlayScript;
    [SerializeField] SettingsDialog settingsScript;

    public void PauseHowToPlay()
    {
        HowToPlay howToPlay = Instantiate(howToPlayScript);
        howToPlay.Open();
    }

    public void PauseSetting()
    {
        SettingsDialog settings = Instantiate(settingsScript);
        settings.Open();
    }

    public void PauseQuit()
    {
#if UNITY_EDITOR
        UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
    }

}
